package com.param.Engineer;

import lombok.Data;

import java.util.Objects;

/**
 * 工程责任方
 */
@Data
public class EngineeringDirectors {
    private String itemID;
    //插入主表使用 , 是engineering_baseinfo的id
    private String projectID;

    //原始数据使用字段
    private String projectId;
    private String jobType;
    private String contractorUnit;
    private String enterpriseNature;
    private String name;
    private String department;
    private String post;
    private String phone;
    private String registerAddress;
    private String remarks;
    private String state;

    public String getItemID() {
        return itemID;
    }

    public void setItemID(String itemID) {
        this.itemID = itemID;
    }

    public String getProjectID() {
        return projectID;
    }

    public void setProjectID(String projectID) {
        this.projectID = projectID;
    }

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public String getJobType() {
        return jobType;
    }

    public void setJobType(String jobType) {
        this.jobType = jobType;
    }

    public String getContractorUnit() {
        return contractorUnit;
    }

    public void setContractorUnit(String contractorUnit) {
        this.contractorUnit = contractorUnit;
    }

    public String getEnterpriseNature() {
        return enterpriseNature;
    }

    public void setEnterpriseNature(String enterpriseNature) {
        this.enterpriseNature = enterpriseNature;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public String getPost() {
        return post;
    }

    public void setPost(String post) {
        this.post = post;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getRegisterAddress() {
        return registerAddress;
    }

    public void setRegisterAddress(String registerAddress) {
        this.registerAddress = registerAddress;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    //验证最新版项目使用  不作他用
  //  private String version;
    // 无参构造函数
    public EngineeringDirectors() {}
   /* @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        EngineeringDirectors that = (EngineeringDirectors) o;
        return itemID.equals(that.itemID) && projectID.equals(that.projectID) && projectId.equals(that.projectId) && jobType.equals(that.jobType) && contractorUnit.equals(that.contractorUnit) && enterpriseNature.equals(that.enterpriseNature) && name.equals(that.name) && department.equals(that.department) && post.equals(that.post) && phone.equals(that.phone) && registerAddress.equals(that.registerAddress) && remarks.equals(that.remarks) && state.equals(that.state) && version.equals(that.version);
    }*/

   /* @Override
    public int hashCode() {
        return Objects.hash(itemID, projectID, projectId, jobType, contractorUnit, enterpriseNature, name, department, post, phone, registerAddress, remarks, state, version);
    }*/

    public EngineeringDirectors(String itemID, String projectID, String jobType,
                                String contractorUnit, String enterpriseNature, String name,
                                String department, String post, String phone, String registerAddress,
                                String remarks, String state/*, String version*/ ) {
        this.itemID = itemID;
        this.projectID = projectID;
        this.jobType = jobType;
        this.contractorUnit = contractorUnit;
        this.enterpriseNature = enterpriseNature;
        this.name = name;
        this.department = department;
        this.post = post;
        this.phone = phone;
        this.registerAddress = registerAddress;
        this.remarks = remarks;
        this.state = state;
     //   this.version = version;

    }
}
